﻿namespace EyeOpen.IO.Test
{
	using System;
	using System.Collections.Generic;

	internal class TestLogger : ILogger
	{
		private readonly List<string> debugMessageList = 
			new List<string>();

		private readonly List<string> traceMessageList =
			new List<string>();

		private readonly List<Exception> exceptionList =
			new List<Exception>();

		public IEnumerable<string> DebugMessageList
		{
			get { return debugMessageList; }
		}

		public IEnumerable<string> TraceMessageList
		{
			get { return traceMessageList; }
		}

		public void Debug(string message)
		{
			debugMessageList.Add(message);
		}

		public void Trace(string message)
		{
			traceMessageList.Add(message);
		}

		public void Exception(Exception exception)
		{
			exceptionList.Add(exception);
		}
	}
}